//
//  ChangePhoneRequest.m
//  DYLYJ
//
//  Created by JM on 15/11/23.
//  Copyright © 2015年 JM. All rights reserved.
//

#import "ChangePhoneRequest.h"

@implementation ChangePhoneRequest
- (void)didRealRequest {
    [[XPGWifiSDK sharedInstance] changeUserPhone:self.DY_token phone:self.DY_phone code:self.DY_code];
}


- (void)wifiSDK:(XPGWifiSDK *)wifiSDK didChangeUserInfo:(NSError *)result {
    if(result.localizedDescription.length == 0) {
        ChangePhoneResponse* response = [ChangePhoneResponse response];
        self.block(response,nil);
        
    }
    else
    {
        self.block(nil,result);
    }
    [super superHandelResponse];
}
@end

@implementation ChangePhoneResponse


@end